import '@/common/init';
import { createApp } from 'vue';
import Ui from 'ui';
import UiIcons from 'ui-icons';
import { changeTheme } from '@/components/theme-select/utils';
import router, { RouterView } from './router';
import './style.less';

changeTheme();

const app = createApp(RouterView);
app.use(router);
for (const [key, component] of Object.entries(UiIcons)) {
  app.component(key, component);
}
app.use(Ui);
app.mount('#app');
